package com.gyp.constant;

/**
 * @Description rediskey相关常量
 * @author xyb
 * @since 14:36 2022/7/14
 */
public class RedisKeyConstant {

    //鉴权token
    public static final String USER_TOKEN_PREFIX = "token:%s";

    //微信公众号授权token
    public static final String WECHAT_TOKEN_PREFIX = "wechat:token:%s";


    //用户登录确认
    public static final String USER_LOGIN_STATUS = "login:%s";

    //IAM token 拼接projectId
    public static final String IAM_TOKEN = "iam:token:%s";

    //注册短信验证码 [register:验证码类型:验证码]
    public static final String APP_CODE_PHONE_PREFIX = "register:%s:%s";

    //订单锁key
    public static final String ORDER_LOCK_PREFIX = "order:lock:%s";

    //支付订单锁key
    public static final String PAY_ORDER_LOCK_KEY_PREFIX = "pay:order:lock:%s";

    //微信扫码登录场景code
    public static final String WX_QRCODE_SCENE = "wx:login:%s";
}
